/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */
#ifndef __TERRAIN_LAYER_CONTROL_H__
#define __TERRAIN_LAYER_CONTROL_H__

#include <QtGui/QWidget>
#include <QtGui/QListWidget>
#include <QtGui/QLabel>
#include <QtGui/QCheckBox>
#include <QtGui/QGridLayout>
#include <QtGui/QVBoxLayout>

namespace PQBuilder
{
	class TerrainLayerControl : 
		public QListWidget
	{
		Q_OBJECT
	public:
		static const int GRID_ROW_HEIGHT=32;
		static const int GRID_SIZE_X = 52;
		static const int GRID_SIZE_Y= 64;
		static const int ICON_SIZE=48;
	
	public:
		TerrainLayerControl(QWidget *parent = 0);
		void addTerrainTextureLayer(const QString& name);
	private:
		void loadLayer();
	public slots:
		void OnItemClicked(QListWidgetItem* item);
	private:
		QVector<QString> _textureNameList;

		
	};

}

#endif
